package com.econorma;

import java.util.List;

import com.econorma.dao.DAO;
import com.econorma.dao.DatabaseConnection;
import com.econorma.data.LetturaProva;
import com.econorma.export.ExportToJson;
import com.econorma.ui.MainWindow;

public class Application {

	private DatabaseConnection dc;
	private DAO dao;
	private ExportToJson export;

	public void init() {
		dc = DatabaseConnection.getInstance();
		dc.init();
		dc.getConnection();

		dao = new DAO(dc);
	 
		MainWindow mw = new MainWindow(this);
 		mw.setVisible(true);
		

	}
	
	public DAO getDao(){
		return dao;
	}
	
	public DatabaseConnection getConnection(){
		return dc;
	}

}
